package com.kbs.im.common.udp.sender;

import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.nio.NioDatagramChannel;

/**
 * udp 消息发送服务 pipline 配置类
 *
 * @author zhangzhang
 */
public class UdpSenderChannelInitializer extends ChannelInitializer<NioDatagramChannel> {

    public static final UdpSenderChannelInitializer INSTANCE = new UdpSenderChannelInitializer();

    @Override
    protected void initChannel(NioDatagramChannel ch) throws Exception {
        ch.pipeline().addLast(new UdpSenderHandler());
    }
}
